﻿
using System.Collections.Generic;
using MailMergeReplaceAspose.Api;
using MailMergeReplaceAspose.Helper;

namespace MailMergeReplaceAspose
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select Service1.svc or Service1.svc.cs at the Solution Explorer and start debugging.
    public class Service : IService
    {

        public bool ReplaceMailMerge(string source, string destination, string pathSource, string pathDestionation)
        {
            return MailMergeApi.ReplaceMailMerge(source, destination, pathSource, pathDestionation);
        }
        public bool ReplaceMailMergeMultiFile(string source, string destination, string[] pathSource, string pathDestionation)
        {
            return MailMergeApi.ReplaceMailMerge(source, destination, pathSource, pathDestionation);
        }
        public bool ReplaceMailMergeWithValue(string source, string destination, string[] pathSource, string pathDestionation)
        {
            return MailMergeApi.ReplaceMailMergeWithValue(source,destination, pathSource, pathDestionation);
        }
        public List<string> GenCase(string input)
        {
            return FastHelper.GenCase(input);
        }
        public bool ReplaceMailMergeWaterMark(string pathImage, string[] pathSource, string pathDestionation,int height)
        {
            return MailMergeApi.ReplaceMailMergeWaterMark(pathImage, pathSource, pathDestionation,height);
        }

    }
}
